// 根据版本环境配置域名信息
const getConf = function () {
  let confObj;
  const version = __wxConfig.envVersion;
  switch (version) {
    case 'develop':
      // 测试版环境
      confObj = {
        key: '111',
        permit_url: 'https://dev.yueyoumap.com',
      };
      break;
    case 'trial':
      // 体验版环境
      confObj = {
        key: '111',
        permit_url: 'https://dev.yueyoumap.com',
      };
      break;
    case 'release':
      // 线上环境
      confObj = {
        key: '111',
        permit_url: 'https://dev.yueyoumap.com',
      };
      break;
    default:
      confObj = {
        key: '111',
        permit_url: 'https://baidu.com',
      };
  }
  return confObj;
};

module.exports = getConf;
